package com.neusoft.neu24.controller;


import com.neusoft.neu24.Result.CommonResult;
import com.neusoft.neu24.entity.Sysnode;
import com.neusoft.neu24.service.impl.SysnodeServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sysnode")
public class SysnodeController {
    @Resource
    private SysnodeServiceImpl sysnodeService;

    @GetMapping("/select/all/tree")
    public CommonResult<Sysnode> loadNode() {
        return sysnodeService.loadNode();
    }

}
